<?php

namespace Addons\Tongji;
use Common\Controller\Addon;

/**
 * Tongji插件
 * @author Creatint
 */

    class TongjiAddon extends Addon{

        public $info = array(
            'name'=>'Tongji',
            'title'=>'统计代码',
            'description'=>'可以添加统计代码',
            'status'=>1,
            'author'=>'Creatint',
            'version'=>'0.1'
        );

        public function install(){
            return true;
        }

        public function uninstall(){
            return true;
        }

        //实现的pageHeader钩子方法
        public function pageHeader($param){
            $config = $this->getConfig();
            echo $config['tongji'];
        }

    }